<template>
  <div class="home-container">
    <h1 class="main-title">个人综合应用平台</h1>
    <div class="content-wrapper">
      <div class="module-container">
        <ul class="module-bar">
          <li v-for="link in linklist" :key="link.name" class="module-item">
            <router-link :to="link.path">{{ link.title }}</router-link>
          </li>
        </ul>
      </div>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ref, onMounted } from "vue";

const linklist = ref([
  { name: "Movie", title: "电影", path: "/movie" },
  { name: "Novel", title: "小说", path: "/novel" },
  { name: "Notes", title: "笔记", path: "/notes" },
  {name:"FileShare",title:"文件共享",path:"/fileShare"}
]);
</script>

<style scoped>
.home-container {
   width: calc(100vw - 62px);
  margin: 0 auto;
}

.main-title {
  width: 100%;
  text-align: center;
  margin: 0;
  padding: 1.5rem 20px;
  font-size: 2.0rem;
  font-weight: 800;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  z-index: 100;
  box-sizing: border-box;
  /* 艺术字效果 */
  background: linear-gradient(135deg, #1a73e8, #3498db);
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
  letter-spacing: 2px;
}

.content-wrapper {
  width: 100%;
}

.module-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.module-item {
  background: #f0f7ff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.1);
  padding: 2rem;
  width: 180px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid #e1f0fa;
}

.module-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 16px rgba(52, 152, 219, 0.2);
  border-color: #3498db;
}

.module-item a {
  text-decoration: none;
  color: var(--color-text);
  font-size: 1.2rem;
  font-weight: 600;
  display: block;
}

.module-item a:hover {
  color: #0d47a1;
}
</style>
